package com.job.admin.model.audit.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_audit_avatar")
public class AuditAvatar {
    @TableId(value = "avatar_id",type = IdType.ASSIGN_UUID)
    private String avatarId;

    @TableField("avatar_user")
    private String avatarUser;

    @TableField("avatar_url")
    private String avatarUrl;

    @TableField("status")
    private Integer status;

    @TableField("reason")
    private String reason;

    @TableField("audit_user")
    private String auditUser;

    @TableField("submission_time")
    private String submissionTime;

    @TableField("audit_time")
    private LocalDateTime auditTime;

    public AuditAvatar(String avatarUser, String avatarUrl, String submissionTime) {
        this.avatarUser = avatarUser;
        this.avatarUrl = avatarUrl;
        this.submissionTime = submissionTime;
    }
}
